import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/login_property_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class LoginPropertyEntity {
	late int code;
	late LoginPropertyObj obj;
	late String msg;

	LoginPropertyEntity();

	factory LoginPropertyEntity.fromJson(Map<String, dynamic> json) => $LoginPropertyEntityFromJson(json);

	Map<String, dynamic> toJson() => $LoginPropertyEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class LoginPropertyObj {
	late String username;
	late String headPortrait;
	late String accessToken;
	late int cid;
	late String cname;
	late int uid;
	late String relation;

	LoginPropertyObj();

	factory LoginPropertyObj.fromJson(Map<String, dynamic> json) => $LoginPropertyObjFromJson(json);

	Map<String, dynamic> toJson() => $LoginPropertyObjToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}